<!DOCTYPE html>
<head>
	<meta http-equiv=Content-Type content="text/span; charset=utf-8"/>
	<meta http-equiv=X-UA-Compatible content="IE=edge"/>
	<script>var weburl="{yun:}$config.sy_weburl{/yun}";</script>
	<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.1.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/member_public.js?v={yun:}$config.cachecode{/yun}"></script>
	<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}"></script>
	<link href="{yun:}$com_style{/yun}/images/m_style.css?v={yun:}$config.cachecode{/yun}" type="text/css" rel="stylesheet"/>
	<meta content="MSHTML 6.00.6000.16939" name=GENERATOR/>
	<style>
		.admin_new_cz_tj {
			line-height: 34px;
			color: #fff;
			background-color: #19678e;
			height: 36px;
			min-width: 78px;
			display: inline-block;
			text-align: center;
			border-width: 1px;
			border-style: solid;
			border-color: #19678e;
			border-image: initial;
			border-radius: 4px;
			margin-left: 10px;
			padding: 0 20px;
			cursor: pointer;
			box-sizing: border-box;
		}
		.admin_new_cz_tj:hover {
			background: #65a5f9;
			color: #fff;
			text-decoration:none;
			border-color: #65a5f9;
		}
		.admin_new_bth {
			width: 78px;
			height: 36px;
			background: #fff;
			border-radius: 4px;
			border: none;
			cursor: pointer;
			float: left;
			margin-right: 20px;
			border: 1px solid #dbdbdb;
			color: #606266;
		}
		.admin_new_bth:hover{
			color: #19678e;
			border-color: #c5ddfd;
			background-color: #ecf4fe;
		}
	</style>
	<script>

        /*屏蔽所有的js错误*/
        function killerrors() {return true;}
        window.onerror = killerrors;
        var integral_pricename='{yun:}$config.integral_pricename{/yun}';
	</script>
	<!--[if IE 6]>
	<script src="{yun:}$config.sy_weburl{/yun}/js/png.js?v={yun:}$config.cachecode{/yun}"></script>
	<script>
		DD_belatedPNG.fix('.png,.#bg');
	</script>
	<![endif]-->
	{yun:}include file="$tplstyle/public_search/index_search.htm"{/yun}
</head>
<body>
<div class="w1000">
	<link rel="stylesheet" href="{yun:}$style{/yun}/style/class.public.css?v={yun:}$config.cachecode{/yun}" type="text/css">
	<script src="{yun:}$config.sy_weburl{/yun}/data/plus/job.cache.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/class.public.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/lssave.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>

	<script language="javascript">
        var saveid=$("#id").val();
        var start = 30;
        var step = -1;
        if(!saveid){
            function count(){
                $("#atime").click(function(){ start=30});
                document.getElementById("totalSecond").innerHTML = start;
                start += step;
                if(start < 0 ){
                    savejobform();
                    start = 30;
                }
                setTimeout("count()",1000);
            }
            window.onload = count;
        }

        function CheckPost(){
            if($.trim($("#username").val())==''){layer.msg('姓名不能为空！',2,8);return false;}
            if($.trim($("#mobile").val())==''){layer.msg('联系电话不能为空！',2,8);return false;}
            var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
            if (!myreg.test($.trim($("#mobile").val()))) {
                layer.msg('联系电话格式不正确！',2,8);return false;
            }
            if($.trim($("#idcard").val())==''){layer.msg('身份证号不能为空！',2,8);return false;}
            // 身份证号码为15位或者18位，15位时全为数字，18位前17位为数字，最后一位是校验位，可能为数字或字符X
            var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
            if (!reg.test($.trim($("#idcard").val()))) {
                layer.msg('身份证号格式不正确！',2,8);return false;
            }
        }
        function returnmessagejob(frame_id){
            if(frame_id==''||frame_id==undefined){
                frame_id='supportiframe';
            }
            var message = $(window.frames[frame_id].document).find("#layer_msg").val();
            if(message != null){
                var url=$(window.frames[frame_id].document).find("#layer_url").val();
                var layer_time=$(window.frames[frame_id].document).find("#layer_time").val();
                var layer_st=$(window.frames[frame_id].document).find("#layer_st").val();
                var layer_url = $(window.frames[frame_id].document).find("#layer_url").val();
                layer.closeAll('loading');
                if(layer_st=='9'){
                    //判断是否开启职位推广并且是新增职位
                    $('#jobid').val(layer_url);
                    $.layer({
                        type : 1,
                        move:false,
                        fix: true,
                        zIndex:666,
                        title : '系统提示',
                        border : [10 , 0.3 , '#000', true],
                        area : ['480px','330px'],
                        page : {dom : '#addjob'},
                        close: function(){
                            {yun:}if $config.com_job_status=='1'{/yun}
                                window.location.href = "index.php?m=jobadd&c=showMemberList&id="+$("input[name='id']").val();
                                {yun:}else{/yun}
                                    window.location.href = "index.php?m=jobadd";
                                    {yun:}/if{/yun}
                            }
                        });
                }else{
                    if(url=='1'){
                        layer.msg(message, layer_time, Number(layer_st),function(){window.location.reload();window.event.returnValue = false;return false;});
                    }else if(url==''){

                        layer.msg(message, layer_time, Number(layer_st));
                    }else{
                        layer.msg(message, layer_time, Number(layer_st),function(){window.location.href = url;window.event.returnValue = false;return false;});
                    }
                }
            }
        }
        function back(myform){
            window.history.go(-1);
        }
        function addjob_continue(){
            var gourl='index.php?m=jobadd&c=add&id='+$("input[name='id']").val();
            window.location.href=gourl;
            window.event.returnValue = false;
            return false;
        }
	</script>
	<div class=right_box>
		<div class=admincont_box>
			<div class="com_tit"><span class="com_tit_span"></span></div>
			<div class="com_body">
				<iframe id="supportiframejob"  name="supportiframejob" onload="returnmessagejob('supportiframejob');" style="display:none"></iframe>
				<form name="MyForm" target="supportiframejob" method="post" action="index.php?m=jobadd&c=addS" onsubmit="return CheckPost();" class="layui-form">
					<input type="hidden" name="id" value="{yun:}$id{/yun}">
					<div class="com_release_box">
						<ul>
							<li>
								<div class="com_release_name"><i class="ff0">*</i>姓名</div>
								<div class="com_release_cont">
									<div class="com_release_cont_text">
										<input type="text" size="45" lay-verify="required" name="username" id='username' value="" class="layui-input">
									</div>
									<span id="by_username" class="errordisplay">联系电话不能为空</span> </div>
							</li>
							<li>
								<div class="com_release_name"><i class="ff0">*</i> 联系电话</div>
								<div class="com_release_cont">
									<div class="com_release_cont_text">
										<input type="text" size="45" lay-verify="required" name="mobile" id='mobile' value="" class="layui-input" onkeyup = "value=value.replace(/[^\d]/g,'')">
									</div>
									<span id="by_mobile" class="errordisplay">联系电话不能为空</span> </div>
							</li>
							<li>
								<div class="com_release_name"><i class="ff0">*</i> 身份证号</div>
								<div class="com_release_cont">
									<div class="com_release_cont_text">
										<input type="text" size="45" lay-verify="required" name="idcard" id='idcard' value="" class="layui-input" onkeyup = "value=value.replace(/[^\d]/g,'')">
									</div>
									<span id="by_idcard" class="errordisplay">身份证号不能为空</span> </div>
							</li>
							<li>
								<div class="com_release_name"><i class="ff0">*</i>性别</div>
								<div class="com_release_cont">

									<div class="layui-input-inline">
										<select name="sex" lay-filter="entry_state" id='sex'>
											<option value="0">女</option>
											<option value="1">男</option>
										</select>
									</div>
								</div>
							</li>
							<li>
								<div class="com_release_name"><i class="ff0">*</i>状态</div>
								<div class="com_release_cont">

									<div class="layui-input-inline">
										<select name="entry_state" lay-filter="entry_state" id='entry_state'>
											<option value="0">未面试</option>
											<option value="1">待入职</option>
											<option value="2">不合格</option>
										</select>
									</div>
								</div>
							</li>
						</ul>
                                                    <div class="clear"></div>
                                                    <div class=admin_submit>
                                                    <div class="admin_job_js_list_ft fl"><span style="width:100%;">&nbsp;</span></div>
                                                <div class=sub_btn>
                                                    <input type="button" value="取消" class="admin_new_bth" onclick="back()">
                                                    <input type="submit" id="submitBtn" value="确认" name="submitBtn" class="admin_new_cz_tj">
                                                </div>
                                                </form>

                                                </div>  </div>

                                                </div>

                                                </div>
                                                </div>

                                                <input type='hidden' id='jobid' value=''>
                                                    <div class="job_tck_box" id="addjob" style="display:none;">
                                                    <div class="job_box_div" style="width:440px;">
                                                    <div class="jonadd_prompt_icon"></div>
                                                    <div class="jonadd_prompt">
                                                    <div class="jonadd_prompt_p"><span id="returnmsg" class="job_add_success">候选人添加成功！</span></div>

                                                <a href="javascript:void(0)"  onclick="addjob_continue();return false;" class="job_add_continue">继续添加候选人</a>
                                                    </div>
                                                    </div>

                                                    </div>
							<script language=javascript src='{yun:}$config.sy_weburl{/yun}/data/plus/city.cache.js?v={yun:}$config.cachecode{/yun}'></script>
							<script language=javascript src='{yun:}$config.sy_weburl{/yun}/js/city.js?v={yun:}$config.cachecode{/yun}'></script>
</body>
</html>